package io.renren.modules.backstage.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 操作记录
 * 
 * @author ian
 * @email ian.ren121@gmail.com
 * @date 2022-04-21 19:34:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_operation")
public class OperationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId
	private Integer id;
	/**
	 * 登录时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd'T'HH:mm:ss")
	private Date loginTime;
	/**
	 * 城市
	 */
	private String address;
	/**
	 * IP
	 */
	private String ip;
	/**
	 * 登录设备
	 */
	private String loginDevice;
	/**
	 * 
	 */
	private Integer uid;

}
